﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

using OgilvyOne.Sharan.IDAL;
using OgilvyOne.Sharan.DAL;

namespace OgilvyOne.Sharan.DALFactory
{
    public class LikeCountDALFactory
    {
        public static readonly IDALLikeCount EnLikeCountDAL = new LikeCountDAL(1033);
        public static readonly IDALLikeCount CnLikeCountDAL = new LikeCountDAL(2052);

        public static IDALLikeCount Create(int? langID)
        {
            if (!langID.HasValue) return null;
            if (langID.Value == 1033) return EnLikeCountDAL;
            return CnLikeCountDAL;
        }
    }
}